package icons;
/*OvalDrawingIcon.java
 *CS193J
 *Summer 2001
 */


import java.awt.*;

import constants.GlobalDebug;
import figures.Oval;
import figures.WBShape;

public class OvalDrawingIcon extends DrawingIcon {

    public OvalDrawingIcon () {
	super();
	if (GlobalDebug.isOn)
	    System.out.println("OvalDrawingIcon.RectangleDrawingIcon()");
    }

    public WBShape createShape (int x1, int y1, int x2, int y2) {
	if (GlobalDebug.isOn)
	    System.out.println("OvalDrawingIcon.createShape()");
	return new Oval(x1, y1, x2, y2);
    }

  public String getCommand () {
      if (GlobalDebug.isOn) 
	  System.out.println ("OvalDrawingIcon.getCommand()");
      return "Oval";
  }
}
